#include <stdio.h>
#include "weekday.h"

char *weekday[] = {"日", "一", "二", "三", "四", "五", "六"};

int main() {
  printf("hello world\r\n");
  int year, month, day, week;
  printf("please input year month day\r\n");
  scanf("%d/%d/%d", &year, &month, &day);

  week = calc_weekday(year, month, day);
  if (week < 0) {
    printf("输入日期错误\n");
    return 1;
  }

  printf("%d年%d月%d日是星期%s\n", year, month, day, weekday[week]);

  return 0;
}